import request from "../axios";
const orderHttp = {
  orderList(params) {
    if(params.isLoading){
      return request.get('/order/pageList', { params,isLoading:params.isLoading }) 
    }
    return request.get('/order/pageList', { params })
  },
  orderUpdate(data) {
    return request({
      method:'post',
      url:'/order/update',
      data,
      isLoading: true
    })
  },
  menuList(params) {
    return request.get('/order/menuList', {
      params,
      isLoading: true
    })
  }
}
export default orderHttp